// 管理员表格加载状态
import { defineStore } from "pinia";

// 该状态用于控制表格进行中和已结束的加载动画
export const useAdmTableLoading = defineStore('admTableLoading', {
    state: () => {
        return {
            tableLoading: false // 表格加载状态
        }
    },
    actions: {
        setTableLoading(loading) {
            this.tableLoading = loading;
        }
    }
})
//该状态用于控制菜单栏切换的加载动画
export const useAdmMenuLoading = defineStore('admMenuLoading', {
    state: () => {
        return {
            menuLoading: false // 菜单加载状态
        }
    },
    actions: {
        setMenuLoading(loading) {
            this.menuLoading = loading;
        }
    }
})